<?php


namespace app\api\controller\uniapp;


use app\api\model\ShopYiwu;
use app\api\model\Users;
use app\common\controller\Api;
use app\api\controller\Wxutils;
use app\api\model\Region;
use think\Config;
use think\Db;

/**
 * 小程序首页接口
 * Class Index
 * @package app\api\controller\uniapp
 */
class Shop extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];
    protected $service = null;

    public function _initialize()
    {
        parent::_initialize();
        $version = str_replace(".","",$this->version);
        $className = basename(__CLASS__);
        $serviceName = "app\\api\\service\\uniapp\\shop\\Shop{$version}";
        $this->service = new $serviceName;
    }

    public function load_shop(){
        return $this->service->load_shop();
    }

    public function shopqrcode(){
        return $this->service->shopqrcode();
    }

    public function getshop(){
        return $this->service->getshop();
    }

    public function shoppay(){
        return $this->service->shoppay();
    }
}